{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %} 
{% block title %}登录系统{% endblock %} 
{% block content %}
<div class="container">
   
     {% for message in get_flashed_messages() %}
     <div class="alert alert-warning">
          <button type="button" class="close" data-dismiss="alert">&times;</button>
         	{{ message }}	
     </div>
     {% endfor %}

     <div class="col-md-4" style="float:none; display:block; margin-left:auto; margin-right:auto;">
          <form class="form-signin" method="POST">
	  {{ form.hidden_tag()}}
          <h2 class="form-signin-heading"><center>登录</center></h2>
          <label for="staff_number" class="sr-only">工号</label>
   	  {{ form.staff_number(class="form-control", placeholder="14位工号",) }}
          <label for="password" class="sr-only">密码</label>
	  {{ form.password(class="form-control", placeholder="密码") }}
          <div class="checkbox">
               <label>
               {{ form.remember_me() }}记住我
               </label>
          </div>
	  {{ form.submit(class="btn btn-lg btn-primary btn-block") }}
          </form>
     </div>
</div> <!-- /container -->
{% endblock %}
